package com.gaoyang.controller;

import com.gaoyang.domain.MyException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ExceptionController {

//    @RequestMapping("/hello")
//    public String hello() throws Exception {
//        throw new Exception("发生错误");
//    }
//
//    @RequestMapping("/json")
//    public String json() throws MyException {
//        throw new MyException("发生错误2");
//    }

}